Optimal. Leaf size=218 \[ \frac{315 \sqrt{\pi } \cos (2 a) \text{FresnelC}\left (\frac{2 \sqrt{b} \sqrt [6]{x}}{\sqrt{\pi }}\right )}{512 b^{9/2}}-\frac{315 \sqrt{\pi } \sin (2 a) S\left (\frac{2 \sqrt{b} \sqrt [6]{x}}{\sqrt{\pi }}\right )}{512 b^{9/2}}+\frac{21 x^{5/6} \cos ^2\left (a+b \sqrt [3]{x}\right )}{8 b^2}-\frac{315 \sqrt [6]{x} \cos ^2\left (a+b \sqrt [3]{x}\right )}{128 b^4}-\frac{105 \sqrt{x} \sin \left (a+b \sqrt [3]{x}\right ) \cos \left (a+b \sqrt [3]{x}\right )}{32 b^3}+\frac{3 x^{7/6} \sin \left (a+b \sqrt [3]{x}\right ) \cos \left (a+b \sqrt [3]{x}\right )}{2 b}-\frac{21 x^{5/6}}{16 b^2}+\frac{315 \sqrt [6]{x}}{256 b^4}+\frac{x^{3/2}}{3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.250679, antiderivative size = 218, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 9, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {3416, 3311, 30, 3312, 3306, 3305, 3351, 3304, 3352} \[ \frac{315 \sqrt{\pi } \cos (2 a) \text{FresnelC}\left (\frac{2 \sqrt{b} \sqrt [6]{x}}{\sqrt{\pi }}\right )}{512 b^{9/2}}-\frac{315 \sqrt{\pi } \sin (2 a) S\left (\frac{2 \sqrt{b} \sqrt [6]{x}}{\sqrt{\pi }}\right )}{512 b^{9/2}}+\frac{21 x^{5/6} \cos ^2\left (a+b \sqrt [3]{x}\right )}{8 b^2}-\frac{315 \sqrt [6]{x} \cos ^2\left (a+b \sqrt [3]{x}\right )}{128 b^4}-\frac{105 \sqrt{x} \sin \left (a+b \sqrt [3]{x}\right ) \cos \left (a+b \sqrt [3]{x}\right )}{32 b^3}+\frac{3 x^{7/6} \sin \left (a+b \sqrt [3]{x}\right ) \cos \left (a+b \sqrt [3]{x}\right )}{2 b}-\frac{21 x^{5/6}}{16 b^2}+\frac{315 \sqrt [6]{x}}{256 b^4}+\frac{x^{3/2}}{3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3416
Rule 3311
Rule 30
Rule 3312
Rule 3306
Rule 3305
Rule 3351
Rule 3304
Rule 3352
Rubi steps
\begin{align*} \int \sqrt{x} \cos ^2\left (a+b \sqrt [3]{x}\right ) \, dx &=3 \operatorname{Subst}\left (\int x^{7/2} \cos ^2(a+b x) \, dx,x,\sqrt [3]{x}\right )\\ &=\frac{21 x^{5/6} \cos ^2\left (a+b \sqrt [3]{x}\right )}{8 b^2}+\frac{3 x^{7/6} \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{2 b}+\frac{3}{2} \operatorname{Subst}\left (\int x^{7/2} \, dx,x,\sqrt [3]{x}\right )-\frac{105 \operatorname{Subst}\left (\int x^{3/2} \cos ^2(a+b x) \, dx,x,\sqrt [3]{x}\right )}{16 b^2}\\ &=\frac{x^{3/2}}{3}-\frac{315 \sqrt [6]{x} \cos ^2\left (a+b \sqrt [3]{x}\right )}{128 b^4}+\frac{21 x^{5/6} \cos ^2\left (a+b \sqrt [3]{x}\right )}{8 b^2}-\frac{105 \sqrt{x} \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{32 b^3}+\frac{3 x^{7/6} \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{2 b}+\frac{315 \operatorname{Subst}\left (\int \frac{\cos ^2(a+b x)}{\sqrt{x}} \, dx,x,\sqrt [3]{x}\right )}{256 b^4}-\frac{105 \operatorname{Subst}\left (\int x^{3/2} \, dx,x,\sqrt [3]{x}\right )}{32 b^2}\\ &=-\frac{21 x^{5/6}}{16 b^2}+\frac{x^{3/2}}{3}-\frac{315 \sqrt [6]{x} \cos ^2\left (a+b \sqrt [3]{x}\right )}{128 b^4}+\frac{21 x^{5/6} \cos ^2\left (a+b \sqrt [3]{x}\right )}{8 b^2}-\frac{105 \sqrt{x} \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{32 b^3}+\frac{3 x^{7/6} \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{2 b}+\frac{315 \operatorname{Subst}\left (\int \left (\frac{1}{2 \sqrt{x}}+\frac{\cos (2 a+2 b x)}{2 \sqrt{x}}\right ) \, dx,x,\sqrt [3]{x}\right )}{256 b^4}\\ &=\frac{315 \sqrt [6]{x}}{256 b^4}-\frac{21 x^{5/6}}{16 b^2}+\frac{x^{3/2}}{3}-\frac{315 \sqrt [6]{x} \cos ^2\left (a+b \sqrt [3]{x}\right )}{128 b^4}+\frac{21 x^{5/6} \cos ^2\left (a+b \sqrt [3]{x}\right )}{8 b^2}-\frac{105 \sqrt{x} \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{32 b^3}+\frac{3 x^{7/6} \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{2 b}+\frac{315 \operatorname{Subst}\left (\int \frac{\cos (2 a+2 b x)}{\sqrt{x}} \, dx,x,\sqrt [3]{x}\right )}{512 b^4}\\ &=\frac{315 \sqrt [6]{x}}{256 b^4}-\frac{21 x^{5/6}}{16 b^2}+\frac{x^{3/2}}{3}-\frac{315 \sqrt [6]{x} \cos ^2\left (a+b \sqrt [3]{x}\right )}{128 b^4}+\frac{21 x^{5/6} \cos ^2\left (a+b \sqrt [3]{x}\right )}{8 b^2}-\frac{105 \sqrt{x} \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{32 b^3}+\frac{3 x^{7/6} \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{2 b}+\frac{(315 \cos (2 a)) \operatorname{Subst}\left (\int \frac{\cos (2 b x)}{\sqrt{x}} \, dx,x,\sqrt [3]{x}\right )}{512 b^4}-\frac{(315 \sin (2 a)) \operatorname{Subst}\left (\int \frac{\sin (2 b x)}{\sqrt{x}} \, dx,x,\sqrt [3]{x}\right )}{512 b^4}\\ &=\frac{315 \sqrt [6]{x}}{256 b^4}-\frac{21 x^{5/6}}{16 b^2}+\frac{x^{3/2}}{3}-\frac{315 \sqrt [6]{x} \cos ^2\left (a+b \sqrt [3]{x}\right )}{128 b^4}+\frac{21 x^{5/6} \cos ^2\left (a+b \sqrt [3]{x}\right )}{8 b^2}-\frac{105 \sqrt{x} \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{32 b^3}+\frac{3 x^{7/6} \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{2 b}+\frac{(315 \cos (2 a)) \operatorname{Subst}\left (\int \cos \left (2 b x^2\right ) \, dx,x,\sqrt [6]{x}\right )}{256 b^4}-\frac{(315 \sin (2 a)) \operatorname{Subst}\left (\int \sin \left (2 b x^2\right ) \, dx,x,\sqrt [6]{x}\right )}{256 b^4}\\ &=\frac{315 \sqrt [6]{x}}{256 b^4}-\frac{21 x^{5/6}}{16 b^2}+\frac{x^{3/2}}{3}-\frac{315 \sqrt [6]{x} \cos ^2\left (a+b \sqrt [3]{x}\right )}{128 b^4}+\frac{21 x^{5/6} \cos ^2\left (a+b \sqrt [3]{x}\right )}{8 b^2}+\frac{315 \sqrt{\pi } \cos (2 a) C\left (\frac{2 \sqrt{b} \sqrt [6]{x}}{\sqrt{\pi }}\right )}{512 b^{9/2}}-\frac{315 \sqrt{\pi } S\left (\frac{2 \sqrt{b} \sqrt [6]{x}}{\sqrt{\pi }}\right ) \sin (2 a)}{512 b^{9/2}}-\frac{105 \sqrt{x} \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{32 b^3}+\frac{3 x^{7/6} \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{2 b}\\ \end{align*}
Mathematica [A] time = 0.442387, size = 148, normalized size = 0.68 \[ \frac{2 \sqrt{b} \sqrt [6]{x} \left (4 b \sqrt [3]{x} \left (9 \left (16 b^2 x^{2/3}-35\right ) \sin \left (2 \left (a+b \sqrt [3]{x}\right )\right )+64 b^3 x\right )+63 \left (16 b^2 x^{2/3}-15\right ) \cos \left (2 \left (a+b \sqrt [3]{x}\right )\right )\right )+945 \sqrt{\pi } \cos (2 a) \text{FresnelC}\left (\frac{2 \sqrt{b} \sqrt [6]{x}}{\sqrt{\pi }}\right )-945 \sqrt{\pi } \sin (2 a) S\left (\frac{2 \sqrt{b} \sqrt [6]{x}}{\sqrt{\pi }}\right )}{1536 b^{9/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.037, size = 145, normalized size = 0.7 \begin{align*}{\frac{1}{3}{x}^{{\frac{3}{2}}}}+{\frac{3}{4\,b}{x}^{{\frac{7}{6}}}\sin \left ( 2\,a+2\,b\sqrt [3]{x} \right ) }-{\frac{21}{4\,b} \left ( -{\frac{1}{4\,b}{x}^{{\frac{5}{6}}}\cos \left ( 2\,a+2\,b\sqrt [3]{x} \right ) }+{\frac{5}{4\,b} \left ({\frac{1}{4\,b}\sqrt{x}\sin \left ( 2\,a+2\,b\sqrt [3]{x} \right ) }-{\frac{3}{4\,b} \left ( -{\frac{1}{4\,b}\sqrt [6]{x}\cos \left ( 2\,a+2\,b\sqrt [3]{x} \right ) }+{\frac{\sqrt{\pi }}{8} \left ( \cos \left ( 2\,a \right ){\it FresnelC} \left ( 2\,{\frac{\sqrt [6]{x}\sqrt{b}}{\sqrt{\pi }}} \right ) -\sin \left ( 2\,a \right ){\it FresnelS} \left ( 2\,{\frac{\sqrt [6]{x}\sqrt{b}}{\sqrt{\pi }}} \right ) \right ){b}^{-{\frac{3}{2}}}} \right ) } \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.96806, size = 455, normalized size = 2.09 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.08488, size = 444, normalized size = 2.04 \begin{align*} \frac{512 \, b^{5} x^{\frac{3}{2}} - 2016 \, b^{3} x^{\frac{5}{6}} + 945 \, \pi \sqrt{\frac{b}{\pi }} \cos \left (2 \, a\right ) \operatorname{C}\left (2 \, x^{\frac{1}{6}} \sqrt{\frac{b}{\pi }}\right ) - 945 \, \pi \sqrt{\frac{b}{\pi }} \operatorname{S}\left (2 \, x^{\frac{1}{6}} \sqrt{\frac{b}{\pi }}\right ) \sin \left (2 \, a\right ) + 252 \,{\left (16 \, b^{3} x^{\frac{5}{6}} - 15 \, b x^{\frac{1}{6}}\right )} \cos \left (b x^{\frac{1}{3}} + a\right )^{2} + 144 \,{\left (16 \, b^{4} x^{\frac{7}{6}} - 35 \, b^{2} \sqrt{x}\right )} \cos \left (b x^{\frac{1}{3}} + a\right ) \sin \left (b x^{\frac{1}{3}} + a\right ) + 1890 \, b x^{\frac{1}{6}}}{1536 \, b^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] time = 1.17979, size = 238, normalized size = 1.09 \begin{align*} \frac{1}{3} \, x^{\frac{3}{2}} - \frac{3 \,{\left (64 i \, b^{3} x^{\frac{7}{6}} - 112 \, b^{2} x^{\frac{5}{6}} - 140 i \, b \sqrt{x} + 105 \, x^{\frac{1}{6}}\right )} e^{\left (2 i \, b x^{\frac{1}{3}} + 2 i \, a\right )}}{512 \, b^{4}} - \frac{3 \,{\left (-64 i \, b^{3} x^{\frac{7}{6}} - 112 \, b^{2} x^{\frac{5}{6}} + 140 i \, b \sqrt{x} + 105 \, x^{\frac{1}{6}}\right )} e^{\left (-2 i \, b x^{\frac{1}{3}} - 2 i \, a\right )}}{512 \, b^{4}} - \frac{315 \, \sqrt{\pi } \operatorname{erf}\left (-\sqrt{b} x^{\frac{1}{6}}{\left (-\frac{i \, b}{{\left | b \right |}} + 1\right )}\right ) e^{\left (2 i \, a\right )}}{1024 \, b^{\frac{9}{2}}{\left (-\frac{i \, b}{{\left | b \right |}} + 1\right )}} - \frac{315 \, \sqrt{\pi } \operatorname{erf}\left (-\sqrt{b} x^{\frac{1}{6}}{\left (\frac{i \, b}{{\left | b \right |}} + 1\right )}\right ) e^{\left (-2 i \, a\right )}}{1024 \, b^{\frac{9}{2}}{\left (\frac{i \, b}{{\left | b \right |}} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]